/**
 *
 */
package de.cbf.cam.dsa.facet.garment.interfaces;

/**
 * @author Nebelritter
 * LATER outsource to own plugin for other gender specifics
 */
public interface IGenderSpecific {

	//LATER gender strings need a better place
	public static final String TEXT_GENDER_UNKNOWN	= "unknown";
	public static final String TEXT_GENDER_MALE		= "male";
	public static final String TEXT_GENDER_FEMALE	= "female";
	
	/**
	 * works as constant for both too
	 */
	public static final int GENDER_UNKNOWN 	=  0;
	public static final int GENDER_FEMALE 	=  1;
	public static final int GENDER_MALE 	=  2;

	public int getGender() ;

	public void setGender(int gender);
	
	public class Util{
		public static String getGenderText(int gender){			
			switch (gender) {
				case GENDER_UNKNOWN:return TEXT_GENDER_UNKNOWN;
				case GENDER_FEMALE:	return TEXT_GENDER_FEMALE;
				case GENDER_MALE:	return TEXT_GENDER_MALE;
				default:
				break;
			}
			return "";
		}
	}
}
